home *** CD-ROM | disk | FTP | other *** search
/ Champak 86 / (Vol 86) My Disc.iso / Games / pet_1112.swf / scripts / DefineSprite_549 / frame_6 / DoAction.as
Text File  |  2009-04-14  |  591b  |  28 lines

  1. stop();
  2. for(var prop in ezWardrobeRollOvers)
  3. {
  4.    clip = ezWardrobeRollOvers[prop];
  5.    clip.onPress = function()
  6.    {
  7.       if(this.baseClip_mc._visible)
  8.       {
  9.          _parent.wears[this.part][this.ID].onPress();
  10.       }
  11.       this.useHandCursor = false;
  12.       this.gotoAndStop(2);
  13.       this.baseClip_mc._visible = false;
  14.    };
  15.    clip.onMouseOver = function()
  16.    {
  17.       _root.sounds.whoosh.start();
  18.       this.gotoAndStop(2);
  19.    };
  20.    clip.onRollOut = function()
  21.    {
  22.       if(this.baseClip_mc._visible)
  23.       {
  24.          this.gotoAndStop(1);
  25.       }
  26.    };
  27. }
  28.